package com.elmcode.study.design.pro06_observer.observers;

import com.elmcode.study.design.pro06_observer.target.Target;
import lombok.extern.slf4j.Slf4j;

/**
 * 具体观察者类
 */
@Slf4j
public class FenSi implements Observer {

    private String name;

    public FenSi(String name){
        this.name = name;
    }


    @Override
    public void update(Target target, String newState) {
        log.info("{} update status {}",this.name,newState);
    }
}
